package com.hongdee.crm.base.service;

import com.hongdee.crm.base.entity.TCrmSurveryItem;
import com.hongdee.crm.base.entity.TCrmSurveyGroup;;

import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/5/10.
 */
public interface ITCrmBaseItemService {
    /**
     update
     */

    public void update(String id, String status) throws Exception;
    /**
     * 方法名称: saveOrUpdate
     * 方法描述:  保存或更新实体，通过主键判断
     */
    public TCrmSurveryItem saveOrUpdate(String uid,TCrmSurveryItem tCrmSurveyItem) throws Exception;
    /**
    * 查询
    * */
    public Map info(String id) throws Exception;
    /**
     * 分页
     *
     */
    public Map newPage(String start, String limit, String id,String itemCode,String groupCode)throws Exception;
    /**
       查询左侧树详情
     */
    public List tree(String uid) throws Exception;
}
